package com.haier.dreambox.demo.net;

import android.util.Log;
import org.androidannotations.annotations.EBean;
import org.androidannotations.api.rest.RestErrorHandler;
import org.springframework.core.NestedRuntimeException;

/**
 * Created by smalant on 15/1/4.
 */
@EBean
public class CommonRestErrorHandler implements RestErrorHandler {

    private static final String TAG = "RestErrorHandler";

    @Override
    public void onRestClientExceptionThrown(NestedRuntimeException e) {
        Log.e(TAG, e.getMessage());
    }
}
